package com.jintian.smart.kernel.orm.entity.annotation;

import java.lang.annotation.Documented;
import java.lang.annotation.Repeatable;
import java.lang.annotation.Retention;
import java.lang.annotation.Target;

import static java.lang.annotation.ElementType.FIELD;
import static java.lang.annotation.RetentionPolicy.RUNTIME;
@Target({ FIELD })
@Retention(RUNTIME)
@Documented
@Repeatable(VueRule.List.class)
public @interface VueRule {
	String condition() default "";

	String trigger() default "blur";

	Length[] length() default {};

	NotNull[] notNull() default {};

	String[] validator() default {};

	@Target({ FIELD })
	@Retention(RUNTIME)
	@Documented
	public @interface List {
		VueRule[] value();
	}
}
